assuming that the eye is located at (0, 0, 0). -_f_a_r specifies the
location of the far clipping plane. Both _n_e_a_r and _f_a_r must be positive.
Use ggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx and ggggllllPPPPooooppppMMMMaaaattttrrrriiiixxxx to save and restore the current matrix
stack.
NNNNOOOOTTTTEEEESSSS
Depth buffer precision is affected by the values specified for _n_e_a_r and
_f_a_r. The greater the ratio of _f_a_r to _n_e_a_r is, the less effective the
depth buffer will be at distinguishing between surfaces that are near
each other. If
far____
r =
near
roughly log (r) bits of depth buffer precision are lost. Because r
2
approaches infinity as _n_e_a_r approaches 0, _n_e_a_r must never be set to 0.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if _n_e_a_r or _f_a_r is not positive, or if _l_e_f_t
= _r_i_g_h_t, or _b_o_t_t_o_m = _t_o_p.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllFFFFrrrruuuussssttttuuuummmm is executed between the
execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.